/*
 * @Author: cqq 945327638@qq.com
 * @Date: 2023-06-03 09:09:42
 * @LastEditors: cqq 945327638@qq.com
 * @LastEditTime: 2023-06-03 23:12:03
 * @FilePath: \InvestmentAdmin\src\api\websiteOverview\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from '@/utils/http'
import { DateType, ShowType } from '@/enums/constEnums'
import { WebsiteOverviewInterfaceRes } from '@/api/websiteOverview/types'
/**
 * @description 获取网站概述数据
 * @param searchParams
 */
export function getWebsiteOverview(searchParams: {
  type: ShowType
  dateType: DateType
  dateRange: string[]
}) {
  return http.post<WebsiteOverviewInterfaceRes>(
    `/admin/websiteOverview/dashboard/info`,
    searchParams,
  )
}
